package com.example.sqldemo.test;

import java.util.ArrayList;
import java.util.List;

public class Product<E> {

    public List<E> copyFromArray1(E[] array){
        List<E> list = new ArrayList<>();
        for (E e : array) {
            list.add(e);
        }
        return list;
    }


    public <T> void  setArray  (T[] array){
        List<T> list = new ArrayList<T>();
        for (T e : array) {
            list.add(e);
        }
    }
}
